2 Scenarios > 2.12 Phonebook > 2.12.6 Writing phonebook entries

2.12.6
This section comprises the subsections Description, Used AT Commands, Flow Chart, Hints and Example. To move to these subsections please use the Navigation Frame or the appropri­ate buttons on the toolbar.
2.12.6.1
This chapter describes the steps used to write a phonebook entry.
There are two ways to edit an entry with AT+CPBW:
•
You can write a new entry to a specific position. In this case first read the phonebook, for example by using AT+CPBR. Then you can specify the position to change an existing entry or to add a new one.
•
The command AT+CPBW can be used to edit the following phonebooks: “SM”, “ME”, “FD”, “ON”.
2.12.6.2
For further details about the commands see [2].
2.12.6.3
Figure 93: Writing phonebook entries
2.12.6.4
•
2.12.6.5
***************************************
Comment: Writing phonebook entries
***************************************
***************************************
Comment: Request maximum range of entries.
***************************************
 
Subscr 1 Send: AT+CPBR=?
Subscr 1 Receive: AT+CPBR=?
Subscr 1 Receive: +CPBR: (1-20),20,14
Subscr 1 Receive:
Subscr 1 Receive: OK
 
***************************************
Comment: Read all entries.
***************************************
 
Subscr 1 Send: AT+CPBR=1,20
Subscr 1 Receive: AT+CPBR=1,20
Subscr 1 Receive: +CPBR: 1,"+491765864491",145,"John Smith"
Subscr 1 Receive: +CPBR: 4,"+445636934485",145,"Tamara Jones"
Subscr 1 Receive: +CPBR: 5,"+445565656899",145,"Hannah Adams"
Subscr 1 Receive: +CPBR: 7,"+449585315798",145,"Alexis Wright"
Subscr 1 Receive: +CPBR: 8,"+445415454646",145,"Abigail Cox"
Subscr 1 Receive: +CPBR: 12,"+446565689115",145,"Kyla Clark"
Subscr 1 Receive:
Subscr 1 Receive: OK
 
***************************************
Comment: Write a new entry to second index.
***************************************
 
Subscr 1 Send: AT+CPBW=2,+44545896638,145,"Paul Williams"
Subscr 1 Receive: AT+CPBW=2,+44545896638,145,"Paul Williams"
Subscr 1 Receive: OK
 
***************************************
Comment: Read all entries.
***************************************
 
Subscr 1 Send: AT+CPBR=1,20
Subscr 1 Receive: AT+CPBR=1,20
Subscr 1 Receive: +CPBR: 1,"+491765864491",145,"John Smith"
Subscr 1 Receive: +CPBR: 2,"+44545896638",145,"Paul Williams"
Subscr 1 Receive: +CPBR: 4,"+445636934485",145,"Tamara Jones"
Subscr 1 Receive: +CPBR: 5,"+445565656899",145,"Hannah Adams"
Subscr 1 Receive: +CPBR: 7,"+449585315798",145,"Alexis Wright"
Subscr 1 Receive: +CPBR: 8,"+445415454646",145,"Abigail Cox"
Subscr 1 Receive: +CPBR: 12,"+446565689115",145,"Kyla Clark"
Subscr 1 Receive:
Subscr 1 Receive: OK
 
 
 
***************************************
Comment: Overwrite entry at fourth index.
***************************************
 
Subscr 1 Send: AT+CPBW=4,+445636934485,145,"Oscar Thomson"
Subscr 1 Receive: AT+CPBW=4,+445636934485,145,"Oscar Thomson"
Subscr 1 Receive: OK
 
***************************************
Comment: Read all entries.
***************************************
 
Subscr 1 Send: AT+CPBR=1,20
Subscr 1 Receive: AT+CPBR=1,20
Subscr 1 Receive: +CPBR: 1,"+491765864491",145,"John Smith"
Subscr 1 Receive: +CPBR: 2,"+44545896638",145,"Paul Williams"
Subscr 1 Receive: +CPBR: 4,"+445636934485",145,"Oscar Thomson"
Subscr 1 Receive: +CPBR: 5,"+445565656899",145,"Hannah Adams"
Subscr 1 Receive: +CPBR: 7,"+449585315798",145,"Alexis Wright"
Subscr 1 Receive: +CPBR: 8,"+445415454646",145,"Abigail Cox"
Subscr 1 Receive: +CPBR: 12,"+446565689115",145,"Kyla Clark"
Subscr 1 Receive:
Subscr 1 Receive: OK
 
***************************************
Comment: Add new entry to the next free position.
***************************************
 
Subscr 1 Send: AT+CPBW=,+44321546546,145,"Tamara Jones"
Subscr 1 Receive: AT+CPBW=,+44321546546,145,"Tamara Jones"
Subscr 1 Receive: OK
 
***************************************
Comment: Read all entries.
***************************************
 
Subscr 1 Send: AT+CPBR=1,20
Subscr 1 Receive: AT+CPBR=1,20
Subscr 1 Receive: +CPBR: 1,"+491765864491",145,"John Smith"
Subscr 1 Receive: +CPBR: 2,"+44545896638",145,"Paul Williams"
Subscr 1 Receive: +CPBR: 3,"+44321546546",145,"Tamara Jones"
Subscr 1 Receive: +CPBR: 4,"+445636934485",145,"Oscar Thomson"
Subscr 1 Receive: +CPBR: 5,"+445565656899",145,"Hannah Adams"
Subscr 1 Receive: +CPBR: 7,"+449585315798",145,"Alexis Wright"
Subscr 1 Receive: +CPBR: 8,"+445415454646",145,"Abigail Cox"
Subscr 1 Receive: +CPBR: 12,"+446565689115",145,"Kyla Clark"
Subscr 1 Receive:
Subscr 1 Receive: OK